/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class RFID {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010080010';
    }

    get categoryName() {
        return '\u0052\u0046\u0049\u0044\u8bfb\u5199\u5668';
    }

    getCardId(params) {
        return command({
            method: 'getCardId',
            methodId: 'ppAXNAD3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getInfo(params) {
        return command({
            method: 'getInfo',
            methodId: 'pUPQZrTG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setInfo(params) {
        return command({
            method: 'setInfo',
            methodId: 'peH32CeV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default RFID;
